#include "HinhBinhHanh.h"
#include "HinhChuNhat.h"
#include "HinhThang.h"
#include "HinhVuong.h"


int main()
{
	int j;
	cout << "Chon loai tu giac can nhap: " << endl;
	cout << "1: Hinh thang." << endl;
	cout << "2: Hinh binh hanh." << endl;
	cout << "3: Hinh chu nhat." << endl;
	cout << "4: Hinh vuong." << endl;
	cin >> j;
	switch (j)
	{
	case 1:
	{
		HinhThang x;
		x.Nhap();
		x.Xuat();
		break;
	}
	case 2:
	{
		HinhBinhHanh x;
		x.Nhap();
		x.Xuat();
		break;
	}
	case 3:
	{
		HinhChuNhat x;
		x.Nhap();
		x.Xuat();
		break;
	}
	case 4:
	{
		HinhVuong x;
		x.Nhap();
		x.Xuat();
		break;
	}
	}
	system("pause");
	return 0;
}